package com.example.springboot.controller.异常处理;


import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(value = HttpStatus.FORBIDDEN /*状态码*/,reason = "用户数量太多")
public class 自定义异常 extends RuntimeException{
    public 自定义异常(String message){
        super(message);
    }
    public 自定义异常(){
    }
}
